package com.data.center.mapper.neo4j;
import com.data.center.entity.neo4j.Approver;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

import java.util.Optional;

public interface ApproverRepository  extends Neo4jRepository<Approver, String>{
    @Query("MATCH (a:Approver {approverId: $approverId}) RETURN a")
    Optional<Approver> findByIdentifier(String approverId);
}
